# while中，未执行break，就会执行else

a = 0
while a < 3:
    pwd = input("输入密码：")
    if pwd == '8888':
        print('密码准确')
        break
    else:
        print('密码错误')
    a += 1
else:
    print("三次密码均错误")
